package com.hamster.tools.i18nManger.utils
{
	import mx.controls.ProgressBar;
	import mx.core.UIComponent;
	import mx.managers.PopUpManager;

	public class AppUtil
	{
		public function AppUtil()
		{
		}
		
		private static var progressBar:ProgressBar;
		
		public static function showProgressBar(text:String, parent:UIComponent):void
		{
			progressBar = PopUpManager.createPopUp(parent, ProgressBar, true) as ProgressBar;
			progressBar.label = text;
			PopUpManager.centerPopUp(progressBar);
		}
		
		public static function hideProgressBar():void
		{
			PopUpManager.removePopUp(progressBar);
			progressBar = null;
		}
	}
}